<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>05.v-bind动态绑定style（数组语法）</title>
</head>
<body>
<div id="app">
  <h2 :style="[colorStyle,fontStyle]">{{message}},王书奇</h2>
</div>
<script src="../js/vue.js"></script>
<script>
  const app = new Vue({
    el: '#app',
    data: {
      message: 'Hello Vue',
      colorStyle: {backgroundColor: 'red', color: 'blue'},
      fontStyle: {fontSize: 100 + 'px', fontFamily: '华文楷体'}
    }
  });
</script>
</body>
</html>
